<template>
<ContentWrap>
    <template #header>
        <el-space wrap>
            <el-button icon="download" @click="export2Excel()" title="导出当前结果" />
            <mdp-table-configs :column-configs="columnConfigs" v-model="checkedColumns"/>
            <span v-if="currOpType=='mng'">
                <el-button :disabled="disBtn('addBtn') || !checkBtnQx('addBtn',menuDefId) " type="primary" @click="openForm({parentOpType:currOpType,subOpType:'add',formData:addForm,title:'新增'})" icon="el-icon-plus"/>
                <el-button :disabled="disBtn('delBtn') || !checkBtnQx('delBtn',menuDefId) || this.sels.length===0 || load.del==true" type="danger" v-loading="load.del" @click="batchDel" icon="el-icon-delete"/>
            </span>
            <span v-else-if="currOpType=='select' &&  this.multiple==true">
                <el-button :disabled="disBtn('selectBtn') || this.sels.length===0" type="primary" @click="selectListConfirm" icon="el-icon-check"/>
            </span>
        </el-space>
    </template>
    <el-space wrap>
        <el-input v-model="filters.branchId" style="width: 20%;" placeholder="公司ID" clearable title="支持>、<、 >=、<=、!=、*字符*、$IS NULL、$IN 1,2,3、$between 1,5等操作符"/>
        <el-button v-loading="load.list" :disabled="load.list==true" @click="searchTableDatas()" icon="el-icon-search" type="primary">查询</el-button>
    </el-space>
</ContentWrap>
<!--列表 BranchInterests 机构权益关联表-->
<el-table :ref="refId+'Table'" :height="100" v-adaptive="{bottomOffset: bottomOffset}" :data="tableDatas" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
    <el-table-column  type="selection" width="55" show-overflow-tooltip fixed="left" v-if="currOpType=='mng' || this.multiple==true"/>
    <el-table-column sortable type="index" width="55" show-overflow-tooltip  fixed="left"/>
    <el-table-column prop="branchId" label="公司ID" min-width="120" show-overflow-tooltip  fixed="left" col-type="String" v-if="showCol('branchId')"/>
    <el-table-column prop="ilvlId"  label="等级ID" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('ilvlId')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.ilvlId" :maxlength="50" @change="editSomeFields(scope.row,'ilvlId',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ilvlName"  label="等级名称" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('ilvlName')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.ilvlName" :maxlength="50" @change="editSomeFields(scope.row,'ilvlName',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="idesc"  label="等级描述" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('idesc')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.idesc" :maxlength="1000" @change="editSomeFields(scope.row,'idesc',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ilevel"  label="1-粉丝,2-" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('ilevel')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.ilevel" @change="editSomeFields(scope.row,'ilevel',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="discount"  label="权益，折扣" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('discount')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.discount" @change="editSomeFields(scope.row,'discount',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="istatus"  label="等级状态" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('istatus')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.istatus" :maxlength="1" @change="editSomeFields(scope.row,'istatus',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ctime"  label="创建时间" min-width="120" show-overflow-tooltip col-type="Date" v-if="showCol('ctime')">
        <template #default="scope">
                <mdp-date type="date" placeholder="选择日期" show-style="tag" v-model="scope.row.ctime" @change="editSomeFields(scope.row,'ctime',$event)"  value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ltime"  label="更新时间" min-width="120" show-overflow-tooltip col-type="Date" v-if="showCol('ltime')">
        <template #default="scope">
                <mdp-date type="date" placeholder="选择日期" show-style="tag" v-model="scope.row.ltime" @change="editSomeFields(scope.row,'ltime',$event)"  value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="picUrl"  label="等级图标url" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('picUrl')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.picUrl" :maxlength="255" @change="editSomeFields(scope.row,'picUrl',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="isFree"  label="是否付费获取权益" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('isFree')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.isFree" :maxlength="1" @change="editSomeFields(scope.row,'isFree',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="rtimeRule"  label="续会时间叠加规则：1.有效期日期后叠加续会时间" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('rtimeRule')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.rtimeRule" :maxlength="1" @change="editSomeFields(scope.row,'rtimeRule',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="rtimeType"  label="续会时间类型：1.天数" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('rtimeType')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.rtimeType" :maxlength="1" @change="editSomeFields(scope.row,'rtimeType',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="rtime"  label="下次续会时间yyyy-MM-dd型" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('rtime')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.rtime" :maxlength="10" @change="editSomeFields(scope.row,'rtime',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="itype"  label="权益分类" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('itype')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.itype" :maxlength="1" @change="editSomeFields(scope.row,'itype',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="shopId"  label="商户编号" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('shopId')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.shopId" :maxlength="20" @change="editSomeFields(scope.row,'shopId',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="instId"  label="当前流程实例编号" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('instId')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.instId" :maxlength="50" @change="editSomeFields(scope.row,'instId',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="flowState"  label="当前流程状态，0初始1审批中2审批通过3审批不通过4流程取消或者删除" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('flowState')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.flowState" :maxlength="1" @change="editSomeFields(scope.row,'flowState',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="smaxAt"  label="单个任务最大金额（任务型用户才有）0代表不限制" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('smaxAt')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.smaxAt" @change="editSomeFields(scope.row,'smaxAt',$event)" :maxlength="10" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="totalAt"  label="累计接单金额（任务型用户才有）0代表不限制" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('totalAt')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.totalAt" @change="editSomeFields(scope.row,'totalAt',$event)" :maxlength="20" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="mtype"  label="适用会员类型（2商户型、1普通型、3任务型）" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('mtype')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.mtype" :maxlength="10" @change="editSomeFields(scope.row,'mtype',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="totalExp"  label="累计经验值0代表不限制" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('totalExp')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.totalExp" @change="editSomeFields(scope.row,'totalExp',$event)" :maxlength="20" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="smaxExp"  label="单个任务最大经验值0代表不限制" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('smaxExp')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.smaxExp" @change="editSomeFields(scope.row,'smaxExp',$event)" :maxlength="20" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="bids"  label="投标次数上限" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('bids')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.bids" @change="editSomeFields(scope.row,'bids',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="sfeeRate"  label="服务费率0-100之间" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('sfeeRate')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.sfeeRate" @change="editSomeFields(scope.row,'sfeeRate',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="idBak"  label="覆盖上一条的等级编号，即变成当前等级之前的等级编号" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('idBak')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.idBak" :maxlength="50" @change="editSomeFields(scope.row,'idBak',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ctotalExp"  label="累计完成工作量" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('ctotalExp')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.ctotalExp" @change="editSomeFields(scope.row,'ctotalExp',$event)" :maxlength="20" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ctotalAt"  label="当前累计完成金额" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('ctotalAt')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.ctotalAt" @change="editSomeFields(scope.row,'ctotalAt',$event)" :maxlength="50" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ctotalBids"  label="累计投标总数" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('ctotalBids')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.ctotalBids" @change="editSomeFields(scope.row,'ctotalBids',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="mfee"  label="月均费用" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('mfee')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.mfee" @change="editSomeFields(scope.row,'mfee',$event)" :maxlength="20" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="maxUsers"  label="最大人员数" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('maxUsers')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.maxUsers" @change="editSomeFields(scope.row,'maxUsers',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="currUsers"  label="当前人员数" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('currUsers')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.currUsers" @change="editSomeFields(scope.row,'currUsers',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="maxRtime"  label="产品模块下次续费截止时间yyyy-MM-dd类型" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('maxRtime')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.maxRtime" :maxlength="10" @change="editSomeFields(scope.row,'maxRtime',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="mver"  label="产品版本0免费版1企业版" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('mver')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.mver" :maxlength="1" @change="editSomeFields(scope.row,'mver',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="guardId"  label="诚信保障金等级金银铜，1-金，2-银，3-铜,0-初始，过期后归0" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('guardId')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.guardId" :maxlength="1" @change="editSomeFields(scope.row,'guardId',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="srvTimes"  label="累计服务次数" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('srvTimes')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.srvTimes" @change="editSomeFields(scope.row,'srvTimes',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="guardName"  label="服务保障名称" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('guardName')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.guardName" :maxlength="255" @change="editSomeFields(scope.row,'guardName',$event)" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="guardRtime"  label="服务保障下次续费时间" min-width="120" show-overflow-tooltip col-type="Date" v-if="showCol('guardRtime')">
        <template #default="scope">
                <mdp-date type="date" placeholder="选择日期" show-style="tag" v-model="scope.row.guardRtime" @change="editSomeFields(scope.row,'guardRtime',$event)"  value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="cmonthBids"  label="当月投标数" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('cmonthBids')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.cmonthBids" @change="editSomeFields(scope.row,'cmonthBids',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="cmonthAt"  label="当月金额" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('cmonthAt')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.cmonthAt" @change="editSomeFields(scope.row,'cmonthAt',$event)" :maxlength="10" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="cmonthExp"  label="当月经验值" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('cmonthExp')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.cmonthExp" @change="editSomeFields(scope.row,'cmonthExp',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="ctotalReceiveAt"  label="当前收款总额" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('ctotalReceiveAt')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.ctotalReceiveAt" @change="editSomeFields(scope.row,'ctotalReceiveAt',$event)" :maxlength="10" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="csixExp"  label="六个月经验分" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('csixExp')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.csixExp" @change="editSomeFields(scope.row,'csixExp',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="csixAt"  label="六个月金额" min-width="120" show-overflow-tooltip col-type="BigDecimal" v-if="showCol('csixAt')">
        <template #default="scope">
                <mdp-input show-style="tag" v-model="scope.row.csixAt" @change="editSomeFields(scope.row,'csixAt',$event)" :maxlength="10" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="csixBids"  label="六个月投标次数" min-width="120" show-overflow-tooltip col-type="Integer" v-if="showCol('csixBids')">
        <template #default="scope">
                <mdp-number show-style="tag" v-model="scope.row.csixBids" @change="editSomeFields(scope.row,'csixBids',$event)" :precision="0" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column prop="clearTime"  label="清除时间" min-width="120" show-overflow-tooltip col-type="Date" v-if="showCol('clearTime')">
        <template #default="scope">
                <mdp-date type="date" placeholder="选择日期" show-style="tag" v-model="scope.row.clearTime" @change="editSomeFields(scope.row,'clearTime',$event)"  value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd" :disabled="disField"/>
        </template>
    </el-table-column>
    <el-table-column label="操作" :width="currOpType=='mng'?380:180" fixed="right">
        <template #default="scope" v-if="currOpType=='mng'"  >
            <el-button :disabled="disBtn('editBtn') || !checkBtnQx('editBtn',menuDefId) " type="primary" @click="openForm({parentOpType:currOpType,subOpType:'edit',formData:scope.row,title:'修改'})" icon="el-icon-edit" title="修改一条数据"/>
            <el-button :disabled="disBtn('addBtn') || !checkBtnQx('addBtn',menuDefId) " type="success" @click="copy(scope.row)" icon="el-icon-document-copy" title="拷贝并新增一条除了主键不一样其它都一样的数据"/>
            <el-button :disabled="disBtn('delBtn') || !checkBtnQx('delBtn',menuDefId) " type="danger" @click="handleDel(scope.row,scope.$index)" icon="el-icon-delete"  title="删除一条数据"/>
        </template>

        <template #default="scope" v-else-if="currOpType=='list'" >
            <el-button   type="primary" @click="openForm({parentOpType:currOpType,subOpType:'detail',formData:scope.row})" icon="el-icon-view"/>
        </template>

        <template #default="scope" v-else-if="currOpType=='select' && this.multiple!=true" >
            <el-button   type="primary" @click="selectConfirm(scope.row)" icon="el-icon-check"/>
        </template>
    </el-table-column>
</el-table>
<el-pagination
    layout="slot,total, sizes, prev, next,pager,jumper"
    @current-change="handleCurrentChange"
    @size-change="handleSizeChange"
    :page-sizes="[10,20, 50, 100, 500]"
    :current-page="pageInfo.pageNum"
    :page-size="pageInfo.pageSize"
    :total="pageInfo.total"
    style="float:right;"
/>
<!--新增修改明细 BranchInterests 机构权益关联表界面-->
<mdp-dialog ref="BranchInterestsFormDialog">
    <template v-slot="{visible,data}">
         <BranchInterestsForm ref="BranchInterestsForm" :visible="visible" :parentOpType="currOpType" :subOpType="data.subOpType" :formData="data.formData" @close="onFormClose" @submit="afterFormSubmit" @fields-change="afterEditSomeFields"/>
    </template>
</mdp-dialog>
</template>

<script>

import { MdpTableMixin } from '@/components/mdp-ui/mixin/MdpTableMixin.js';
import * as BranchInterestsApi from '@/api/mdp/sys/branchInterests';
import  BranchInterestsForm from'./Form.vue';//新增修改明细界面
import { mapState } from 'pinia'
import { useUserStore } from '@/store/modules/user'

export default {
    name:'BranchInterestsMng',
    mixins:[MdpTableMixin],
    components: {
        BranchInterestsForm
    },
    computed: {
        ...mapState(useUserStore,['userInfo'])
    },
    watch:{
    },
    data() {
        return {
            menuDefId:'',//menu_def.id 菜单表菜单编号，用于按钮权限判断
            menuDefName:'机构权益关联表',//menu_def.name 功能名称，用于导出excel等文件名
            refId:'BranchInterests',//引用编号，<table :ref="refId+'Table'"> <form :ref="refId+'Form'">
            pkNames:["branchId"],//表格主键的java属性名称，驼峰命名，默认为id,支持多主键
            
            filters:{//查询参数

            },
            defaultFilters:{//默认查询参数,第一次打开界面的时候用到，恢复默认值的时候用到

            },

            //增删改查(含批量)接口
            apis:{
                list: BranchInterestsApi.listBranchInterests,
                add: BranchInterestsApi.addBranchInterests,
                del: BranchInterestsApi.delBranchInterests,
                edit: BranchInterestsApi.editBranchInterests,
                editSomeFields: BranchInterestsApi.editSomeFieldsBranchInterests,
                batchAdd: BranchInterestsApi.batchAddBranchInterests,
                batchDel: BranchInterestsApi.batchDelBranchInterests,
                batchEdit: BranchInterestsApi.batchEditBranchInterests,
            }
        }
    },
    methods: {
         //页面初始化需要配置的特殊逻辑写这里
          initCurrData(){
             this.searchTableDatas();
          },

          /**
           * 检查参数是否满足调用后台接口的条件
           *
           * @param params 提交给后台的参数池,map类型
           * @returns true / false
           */
          preQueryParamCheck(params){
              return true;
          },

          //页面数据加载完后需要对数据进行加工处理的
          afterList(tableDatas,isOk,apiName){

          },

          /**
           * 对修改的字段进行判断，返回false ,将取消更新数据库
           * @param {*} row 当前选中的行
           * @param {*} fieldName 修改的字段名
           * @param {*} $event 修改后的值
           * @param {*} params 将要提交服务器的参数
           * @returns true/false 返回false ,将取消更新数据库
           */
          editSomeFieldsCheck(row,fieldName,$event,params){
              if(this.currOpType=='add'||this.currOpType=='detail'){
                  return false;
              }
              params[fieldName]=$event
              return true;
          },
    },
    mounted() {

    }
}

</script>

<style scoped>
</style>